//---------------------------------------------------------------------------
//
// Name:        htmlFrame.h
// Author:      gurkesaft
// Created:     8/1/2007 9:24:28 AM
// Description: htmlFrame class declaration
//
//---------------------------------------------------------------------------

#ifndef __HTMLFRAME_h__
#define __HTMLFRAME_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
	#include <wx/frame.h>
#else
	#include <wx/wxprec.h>
#endif

//Do not add custom headers between 
//Header Include Start and Header Include End.
//wxDev-C++ designer will remove them. Add custom headers after the block.
////Header Include Start
#include <wx/html/htmlwin.h>
////Header Include End

////Dialog Style Start
#undef htmlFrame_STYLE
#define htmlFrame_STYLE wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxMINIMIZE_BOX | wxCLOSE_BOX
////Dialog Style End

#include "RSSFilterFrame.h"
class RSSFilterFrame;

class htmlFrame : public wxFrame
{
	private:
		DECLARE_EVENT_TABLE();
		
	public:
		htmlFrame(RSSFilterFrame *parent, wxWindowID id = 1, const wxString &title = wxT("htmlFrame"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = htmlFrame_STYLE);
		virtual ~htmlFrame();
		
		void SetPage(wxString &s);
    	void LinkClicked(wxHtmlLinkEvent &link_event);
    	RSSFilterFrame *parent;
		void htmlFrameSetFocus(wxFocusEvent& event);
		
	private:
		//Do not add custom control declarations between
		//GUI Control Declaration Start and GUI Control Declaration End.
		//wxDev-C++ will remove them. Add custom code after the block.
		////GUI Control Declaration Start
		wxHtmlWindow *htmlMain;
		////GUI Control Declaration End
		
	private:
		//Note: if you receive any error with these enum IDs, then you need to
		//change your old form code that are based on the #define control IDs.
		//#defines may replace a numeric value for the enum names.
		//Try copy and pasting the below block in your old form header files.
		enum
		{
			////GUI Enum Control ID Start
			ID_HTMLMAIN = 1001,
			////GUI Enum Control ID End
			ID_DUMMY_VALUE_ //don't remove this value unless you have other enum values
		};
		
	public:
		void OnClose(wxCloseEvent& event);
		void CreateGUIControls();
};

#endif
